package com.kqb.mapper;

import com.kqb.common.curd.IBaseMapper;
import com.kqb.pojo.Department;
import com.kqb.pojo.dto.DepartmentDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author D
 */
@Mapper
public interface DepartmentMapper extends IBaseMapper<Department> {
    public int selectByParentId(int parentId);

    public Department selectByName(String name);

    List<Department> queryByPage(DepartmentDto departmentDTO);

    List<Department> selectAll();

}